package cn.hiapi.core.basic.redis.service;

import org.springframework.data.redis.connection.MessageListener;

import java.util.Collection;

/**
 * @author AdinZ
 * @date 2022/3/9 12:37
 */
public interface RedisSubscriber {
    void addSubscriber(MessageListener listener, String channel);
    void addSubscriber(MessageListener listener, Collection<String> channel);

    void publish(String channel, Object data);
}
